package com.qs.rocketmq.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@MapperScan("com.qs.rocketmq.order.mapper")
public class QsOrderApplication {

    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();
        SpringApplication.run(QsOrderApplication.class, args);
        System.out.println("启动成功，耗时：" + (System.currentTimeMillis() - startTime) + "ms");
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
